home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2008 May
/
PersonalComputerWorld-May2008-CoverdiscCD.iso
/
Software
/
Resources
/
Security
/
PC Tools AntiVirus 4.0.0.20
/
avinstall.exe
/
{tmp}
/
shutdown.vbs
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2008-01-09
|
313 b
|
14 lines
Sub ShutDown
nLogOff=0
nReboot=2
nForceLogOff=4
nForceReboot=6
nPowerDown=8
nForcePowerDown=12
Set oOS = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
For Each oOperatingSystem in oOS
oOperatingSystem.Win32Shutdown(nForceReboot)
Next
End sub
ShutDown